package com.kuang.springcloud;

import com.kuang.murule.KuangRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//Ribbon 和Eureka 整合以后，客户端可以直接调用 ，不用关心IP地址
@EnableEurekaClient  //开启Eureka客户端配置负载均衡
@SpringBootApplication

//微服务启动的时候加载自定义负载均衡
@RibbonClient(name = "SPRING-CLOUD-PROVIDER-DEPT",configuration = KuangRule.class) //自定义算法
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
